<template>
  <div class="box">
    <van-swipe
      class="my-swipe"
      :autoplay="3000"
      indicator-color="white"
      autoplay=3000
    >
      <van-swipe-item v-for="(image, index) in banner.img" :key="index"
        ><img :src="image" alt="" class="imgs"/></van-swipe-item>

    </van-swipe>
  </div>
</template>

<script>
//chuang
export default {
  name: "BannerDian",
  props:['banner'],
  data() {
    return {

    };
  },
};
</script>

<style scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 0.2rem;
  line-height: 1.5rem;
  text-align: center;
  background-color: #39a9ed;
  width: 100%;
  height: 1.8rem;
}
.imgs{
    width: 100%;
    height: 140%;

}
</style>